import { createWebHashHistory, createRouter, RouteRecordRaw } from 'vue-router'

import PagesRouter from './pages/index'
import ViewsRouter from './views/index'

export type AddRouteRecordRow = RouteRecordRaw & {
  hidden?: boolean  // RouteRecordRaw 扩展属性  是否显示隐藏
}
const router = createRouter({
  history: createWebHashHistory(),
  routes: [...ViewsRouter, ...PagesRouter] as AddRouteRecordRow[]
})
export default router